/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CbaUI.java
 *
 * Created on 23/Nov/2009, 17:12:02
 */
package cbaApplication;

import javax.swing.JOptionPane;

/**
 *
 * @author Filipe
 */
public class CbaUI extends javax.swing.JFrame {

    private CBA cba;

    /** Creates new form CbaUI */
    public CbaUI(CBA cba) {
        this.cba = cba;

        initComponents();
        setLocationRelativeTo(null);
        panelMainCliente.setVisible(false);
        panelFunc.setVisible(false);
        panelPub.setVisible(false);
    }


    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panelPub = new javax.swing.JPanel();
        labelPubText = new javax.swing.JLabel();
        labelPubImage = new javax.swing.JLabel();
        panelLogin = new javax.swing.JPanel();
        textFieldNumCartao = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        butLoginOK = new javax.swing.JButton();
        passFieldPIN = new javax.swing.JPasswordField();
        panelMainCliente = new javax.swing.JPanel();
        tabbedPaneClient = new javax.swing.JTabbedPane();
        tabCliConsSaldo = new javax.swing.JPanel();
        butConsultarSaldo = new javax.swing.JButton();
        labelSaldo = new javax.swing.JLabel();
        tabCliLev = new javax.swing.JPanel();
        textFieldLev = new javax.swing.JTextField();
        butLevOK = new javax.swing.JButton();
        tabCliDep = new javax.swing.JPanel();
        textFieldDep = new javax.swing.JTextField();
        butDepOK = new javax.swing.JButton();
        tabCliPaga = new javax.swing.JPanel();
        textFieldPgmQtia = new javax.swing.JTextField();
        butPgmOK = new javax.swing.JButton();
        textFieldRefer = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        tabCliTrans = new javax.swing.JPanel();
        textFieldTrfQtia = new javax.swing.JTextField();
        butTrfOK = new javax.swing.JButton();
        textFieldContaDest = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        tabCliMudarPin = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        passFieldMudPin1 = new javax.swing.JPasswordField();
        passFieldMudPin2 = new javax.swing.JPasswordField();
        butOKmudaPin = new javax.swing.JButton();
        panelFunc = new javax.swing.JPanel();
        panelCarregarMaq = new javax.swing.JPanel();
        labelFuncSaldoMaquina = new javax.swing.JLabel();
        labelXicara = new javax.swing.JLabel();
        textFieldFuncCarrMaq = new javax.swing.JTextField();
        butCarregarMaq = new javax.swing.JButton();
        panelRetirarDep = new javax.swing.JPanel();
        labelXicara1 = new javax.swing.JLabel();
        labelFuncDeps = new javax.swing.JLabel();
        butRetDeps = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBounds(new java.awt.Rectangle(0, 0, 800, 600));
        setMinimumSize(new java.awt.Dimension(800, 600));
        setResizable(false);

        panelPub.setBackground(new java.awt.Color(51, 51, 51));
        panelPub.setMinimumSize(new java.awt.Dimension(800, 600));

        labelPubText.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        labelPubText.setForeground(new java.awt.Color(153, 204, 255));
        labelPubText.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        labelPubText.setText("Por favor aguarde...");
        labelPubText.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        labelPubImage.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        labelPubImage.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/ford.jpg"))); // NOI18N
        labelPubImage.setMinimumSize(new java.awt.Dimension(700, 500));
        labelPubImage.setPreferredSize(new java.awt.Dimension(700, 500));

        javax.swing.GroupLayout panelPubLayout = new javax.swing.GroupLayout(panelPub);
        panelPub.setLayout(panelPubLayout);
        panelPubLayout.setHorizontalGroup(
            panelPubLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelPubLayout.createSequentialGroup()
                .addGap(55, 55, 55)
                .addGroup(panelPubLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelPubText, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 700, Short.MAX_VALUE)
                    .addComponent(labelPubImage, javax.swing.GroupLayout.PREFERRED_SIZE, 700, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(45, Short.MAX_VALUE))
        );
        panelPubLayout.setVerticalGroup(
            panelPubLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelPubLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(labelPubImage, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(labelPubText, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        panelLogin.setBackground(new java.awt.Color(51, 102, 255));
        panelLogin.setMinimumSize(new java.awt.Dimension(800, 600));
        panelLogin.setPreferredSize(new java.awt.Dimension(800, 600));

        textFieldNumCartao.setFont(new java.awt.Font("Tahoma", 0, 36));

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setText("Número do Cartão");

        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("PIN");

        butLoginOK.setFont(new java.awt.Font("Tahoma", 0, 24));
        butLoginOK.setText("Continuar");
        butLoginOK.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);
        butLoginOK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butLoginOKActionPerformed(evt);
            }
        });

        passFieldPIN.setFont(new java.awt.Font("Tahoma", 0, 24));

        javax.swing.GroupLayout panelLoginLayout = new javax.swing.GroupLayout(panelLogin);
        panelLogin.setLayout(panelLoginLayout);
        panelLoginLayout.setHorizontalGroup(
            panelLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelLoginLayout.createSequentialGroup()
                .addGap(216, 216, 216)
                .addGroup(panelLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(textFieldNumCartao, javax.swing.GroupLayout.PREFERRED_SIZE, 359, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(butLoginOK)
                    .addComponent(jLabel2)
                    .addComponent(jLabel1)
                    .addComponent(passFieldPIN, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(225, Short.MAX_VALUE))
        );
        panelLoginLayout.setVerticalGroup(
            panelLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelLoginLayout.createSequentialGroup()
                .addContainerGap(310, Short.MAX_VALUE)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(textFieldNumCartao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel2)
                .addGap(18, 18, 18)
                .addComponent(passFieldPIN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(36, 36, 36)
                .addComponent(butLoginOK)
                .addGap(39, 39, 39))
        );

        panelMainCliente.setMinimumSize(new java.awt.Dimension(800, 600));

        tabbedPaneClient.setForeground(new java.awt.Color(204, 0, 0));
        tabbedPaneClient.setFont(new java.awt.Font("Calibri", 1, 18));

        tabCliConsSaldo.setBackground(new java.awt.Color(51, 102, 255));

        butConsultarSaldo.setFont(new java.awt.Font("Tahoma", 0, 24));
        butConsultarSaldo.setText("Consultar Saldo actual");
        butConsultarSaldo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butConsultarSaldoActionPerformed(evt);
            }
        });

        labelSaldo.setFont(new java.awt.Font("Tahoma", 1, 24));
        labelSaldo.setForeground(new java.awt.Color(255, 255, 255));
        labelSaldo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        labelSaldo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        javax.swing.GroupLayout tabCliConsSaldoLayout = new javax.swing.GroupLayout(tabCliConsSaldo);
        tabCliConsSaldo.setLayout(tabCliConsSaldoLayout);
        tabCliConsSaldoLayout.setHorizontalGroup(
            tabCliConsSaldoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabCliConsSaldoLayout.createSequentialGroup()
                .addContainerGap(255, Short.MAX_VALUE)
                .addComponent(butConsultarSaldo)
                .addGap(253, 253, 253))
            .addGroup(tabCliConsSaldoLayout.createSequentialGroup()
                .addGap(221, 221, 221)
                .addComponent(labelSaldo, javax.swing.GroupLayout.PREFERRED_SIZE, 332, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(222, Short.MAX_VALUE))
        );
        tabCliConsSaldoLayout.setVerticalGroup(
            tabCliConsSaldoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabCliConsSaldoLayout.createSequentialGroup()
                .addGap(181, 181, 181)
                .addComponent(butConsultarSaldo)
                .addGap(44, 44, 44)
                .addComponent(labelSaldo, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(237, Short.MAX_VALUE))
        );

        tabbedPaneClient.addTab("Consulta de Saldo", tabCliConsSaldo);

        tabCliLev.setBackground(new java.awt.Color(51, 102, 255));

        textFieldLev.setFont(new java.awt.Font("Tahoma", 0, 36));

        butLevOK.setFont(new java.awt.Font("Tahoma", 0, 24));
        butLevOK.setText("Levantar Quantia");
        butLevOK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butLevOKActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout tabCliLevLayout = new javax.swing.GroupLayout(tabCliLev);
        tabCliLev.setLayout(tabCliLevLayout);
        tabCliLevLayout.setHorizontalGroup(
            tabCliLevLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabCliLevLayout.createSequentialGroup()
                .addGap(271, 271, 271)
                .addGroup(tabCliLevLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(textFieldLev, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(butLevOK))
                .addContainerGap(289, Short.MAX_VALUE))
        );
        tabCliLevLayout.setVerticalGroup(
            tabCliLevLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabCliLevLayout.createSequentialGroup()
                .addGap(167, 167, 167)
                .addComponent(textFieldLev, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(butLevOK)
                .addContainerGap(269, Short.MAX_VALUE))
        );

        tabbedPaneClient.addTab("Levantamentos", tabCliLev);

        tabCliDep.setBackground(new java.awt.Color(51, 102, 255));

        textFieldDep.setFont(new java.awt.Font("Tahoma", 0, 36));

        butDepOK.setFont(new java.awt.Font("Tahoma", 0, 24));
        butDepOK.setText("Depositar Quantia");
        butDepOK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butDepOKActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout tabCliDepLayout = new javax.swing.GroupLayout(tabCliDep);
        tabCliDep.setLayout(tabCliDepLayout);
        tabCliDepLayout.setHorizontalGroup(
            tabCliDepLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, tabCliDepLayout.createSequentialGroup()
                .addContainerGap(279, Short.MAX_VALUE)
                .addGroup(tabCliDepLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(textFieldDep, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(butDepOK))
                .addGap(273, 273, 273))
        );
        tabCliDepLayout.setVerticalGroup(
            tabCliDepLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabCliDepLayout.createSequentialGroup()
                .addGap(183, 183, 183)
                .addComponent(textFieldDep, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(butDepOK)
                .addContainerGap(253, Short.MAX_VALUE))
        );

        tabbedPaneClient.addTab("Depósitos", tabCliDep);

        tabCliPaga.setBackground(new java.awt.Color(51, 102, 255));

        textFieldPgmQtia.setFont(new java.awt.Font("Tahoma", 0, 36));

        butPgmOK.setFont(new java.awt.Font("Tahoma", 0, 24));
        butPgmOK.setText("Continuar");
        butPgmOK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butPgmOKActionPerformed(evt);
            }
        });

        textFieldRefer.setFont(new java.awt.Font("Tahoma", 0, 36));

        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel5.setForeground(new java.awt.Color(255, 255, 255));
        jLabel5.setText("Referência");

        jLabel6.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel6.setForeground(new java.awt.Color(255, 255, 255));
        jLabel6.setText("Quantia");

        javax.swing.GroupLayout tabCliPagaLayout = new javax.swing.GroupLayout(tabCliPaga);
        tabCliPaga.setLayout(tabCliPagaLayout);
        tabCliPagaLayout.setHorizontalGroup(
            tabCliPagaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabCliPagaLayout.createSequentialGroup()
                .addGap(195, 195, 195)
                .addGroup(tabCliPagaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(textFieldPgmQtia, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6)
                    .addComponent(textFieldRefer, javax.swing.GroupLayout.PREFERRED_SIZE, 375, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5)
                    .addComponent(butPgmOK))
                .addContainerGap(205, Short.MAX_VALUE))
        );
        tabCliPagaLayout.setVerticalGroup(
            tabCliPagaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabCliPagaLayout.createSequentialGroup()
                .addGap(120, 120, 120)
                .addComponent(jLabel5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(textFieldRefer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(8, 8, 8)
                .addComponent(jLabel6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(textFieldPgmQtia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(64, 64, 64)
                .addComponent(butPgmOK)
                .addContainerGap(137, Short.MAX_VALUE))
        );

        tabbedPaneClient.addTab("Pagamentos", tabCliPaga);

        tabCliTrans.setBackground(new java.awt.Color(51, 102, 255));

        textFieldTrfQtia.setFont(new java.awt.Font("Tahoma", 0, 36));

        butTrfOK.setFont(new java.awt.Font("Tahoma", 0, 24));
        butTrfOK.setText("Continuar");
        butTrfOK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butTrfOKActionPerformed(evt);
            }
        });

        textFieldContaDest.setFont(new java.awt.Font("Tahoma", 0, 36));

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel3.setForeground(new java.awt.Color(255, 255, 255));
        jLabel3.setText("Número da conta de destino");

        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel4.setForeground(new java.awt.Color(255, 255, 255));
        jLabel4.setText("Quantia");

        javax.swing.GroupLayout tabCliTransLayout = new javax.swing.GroupLayout(tabCliTrans);
        tabCliTrans.setLayout(tabCliTransLayout);
        tabCliTransLayout.setHorizontalGroup(
            tabCliTransLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, tabCliTransLayout.createSequentialGroup()
                .addContainerGap(213, Short.MAX_VALUE)
                .addGroup(tabCliTransLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel3)
                    .addComponent(textFieldContaDest, javax.swing.GroupLayout.PREFERRED_SIZE, 376, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4)
                    .addComponent(textFieldTrfQtia, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(butTrfOK))
                .addGap(186, 186, 186))
        );
        tabCliTransLayout.setVerticalGroup(
            tabCliTransLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabCliTransLayout.createSequentialGroup()
                .addGap(95, 95, 95)
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(textFieldContaDest, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(12, 12, 12)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(textFieldTrfQtia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(57, 57, 57)
                .addComponent(butTrfOK)
                .addContainerGap(170, Short.MAX_VALUE))
        );

        tabbedPaneClient.addTab("Transferências", tabCliTrans);

        tabCliMudarPin.setBackground(new java.awt.Color(51, 102, 255));

        jLabel7.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel7.setForeground(new java.awt.Color(255, 255, 255));
        jLabel7.setText("Insira o novo PIN");

        jLabel8.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel8.setForeground(new java.awt.Color(255, 255, 255));
        jLabel8.setText("Repita o novo PIN");

        passFieldMudPin1.setFont(new java.awt.Font("Tahoma", 0, 24));

        passFieldMudPin2.setFont(new java.awt.Font("Tahoma", 0, 24));

        butOKmudaPin.setFont(new java.awt.Font("Tahoma", 0, 24));
        butOKmudaPin.setText("Confirmar");
        butOKmudaPin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butOKmudaPinActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout tabCliMudarPinLayout = new javax.swing.GroupLayout(tabCliMudarPin);
        tabCliMudarPin.setLayout(tabCliMudarPinLayout);
        tabCliMudarPinLayout.setHorizontalGroup(
            tabCliMudarPinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabCliMudarPinLayout.createSequentialGroup()
                .addGap(281, 281, 281)
                .addGroup(tabCliMudarPinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel7)
                    .addComponent(passFieldMudPin1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8)
                    .addComponent(passFieldMudPin2, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(butOKmudaPin))
                .addContainerGap(301, Short.MAX_VALUE))
        );
        tabCliMudarPinLayout.setVerticalGroup(
            tabCliMudarPinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabCliMudarPinLayout.createSequentialGroup()
                .addGap(136, 136, 136)
                .addComponent(jLabel7)
                .addGap(31, 31, 31)
                .addComponent(passFieldMudPin1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(42, 42, 42)
                .addComponent(jLabel8)
                .addGap(18, 18, 18)
                .addComponent(passFieldMudPin2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(34, 34, 34)
                .addComponent(butOKmudaPin)
                .addContainerGap(115, Short.MAX_VALUE))
        );

        tabbedPaneClient.addTab("Alterar PIN", tabCliMudarPin);

        javax.swing.GroupLayout panelMainClienteLayout = new javax.swing.GroupLayout(panelMainCliente);
        panelMainCliente.setLayout(panelMainClienteLayout);
        panelMainClienteLayout.setHorizontalGroup(
            panelMainClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelMainClienteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(tabbedPaneClient, javax.swing.GroupLayout.DEFAULT_SIZE, 780, Short.MAX_VALUE)
                .addContainerGap())
        );
        panelMainClienteLayout.setVerticalGroup(
            panelMainClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelMainClienteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(tabbedPaneClient, javax.swing.GroupLayout.DEFAULT_SIZE, 578, Short.MAX_VALUE)
                .addContainerGap())
        );

        tabbedPaneClient.getAccessibleContext().setAccessibleName("Levantamentos");

        panelFunc.setBackground(new java.awt.Color(102, 102, 102));
        panelFunc.setMinimumSize(new java.awt.Dimension(800, 600));

        panelCarregarMaq.setBackground(new java.awt.Color(102, 102, 102));
        panelCarregarMaq.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Carregar Máquina", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Tahoma", 0, 24), new java.awt.Color(255, 102, 51))); // NOI18N
        panelCarregarMaq.setPreferredSize(new java.awt.Dimension(380, 500));

        labelFuncSaldoMaquina.setFont(new java.awt.Font("Calibri", 0, 24));
        labelFuncSaldoMaquina.setForeground(new java.awt.Color(255, 255, 255));
        labelFuncSaldoMaquina.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        labelFuncSaldoMaquina.setText("7800€");

        labelXicara.setFont(new java.awt.Font("Calibri", 0, 24));
        labelXicara.setForeground(new java.awt.Color(255, 255, 255));
        labelXicara.setText("Saldo disponível na máquina");

        textFieldFuncCarrMaq.setFont(new java.awt.Font("Tahoma", 0, 24));

        butCarregarMaq.setFont(new java.awt.Font("Tahoma", 0, 24));
        butCarregarMaq.setText("Efectuar Carregamento");
        butCarregarMaq.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butCarregarMaqActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panelCarregarMaqLayout = new javax.swing.GroupLayout(panelCarregarMaq);
        panelCarregarMaq.setLayout(panelCarregarMaqLayout);
        panelCarregarMaqLayout.setHorizontalGroup(
            panelCarregarMaqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCarregarMaqLayout.createSequentialGroup()
                .addGroup(panelCarregarMaqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(panelCarregarMaqLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(butCarregarMaq))
                    .addGroup(panelCarregarMaqLayout.createSequentialGroup()
                        .addGap(40, 40, 40)
                        .addGroup(panelCarregarMaqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(labelFuncSaldoMaquina, javax.swing.GroupLayout.DEFAULT_SIZE, 285, Short.MAX_VALUE)
                            .addComponent(labelXicara))))
                .addGap(43, 43, 43))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCarregarMaqLayout.createSequentialGroup()
                .addContainerGap(98, Short.MAX_VALUE)
                .addComponent(textFieldFuncCarrMaq, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(96, 96, 96))
        );
        panelCarregarMaqLayout.setVerticalGroup(
            panelCarregarMaqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCarregarMaqLayout.createSequentialGroup()
                .addGap(98, 98, 98)
                .addComponent(labelXicara)
                .addGap(18, 18, 18)
                .addComponent(labelFuncSaldoMaquina)
                .addGap(102, 102, 102)
                .addComponent(textFieldFuncCarrMaq, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(butCarregarMaq)
                .addContainerGap(168, Short.MAX_VALUE))
        );

        panelRetirarDep.setBackground(new java.awt.Color(102, 102, 102));
        panelRetirarDep.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Retirar Depósitos", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Tahoma", 0, 24), new java.awt.Color(255, 102, 51))); // NOI18N
        panelRetirarDep.setPreferredSize(new java.awt.Dimension(380, 500));

        labelXicara1.setFont(new java.awt.Font("Calibri", 0, 24));
        labelXicara1.setForeground(new java.awt.Color(255, 255, 255));
        labelXicara1.setText("Total de depósitos");

        labelFuncDeps.setFont(new java.awt.Font("Calibri", 0, 24));
        labelFuncDeps.setForeground(new java.awt.Color(255, 255, 255));
        labelFuncDeps.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        labelFuncDeps.setText("7800€");

        butRetDeps.setFont(new java.awt.Font("Tahoma", 0, 24));
        butRetDeps.setText("Retirar Depósitos");
        butRetDeps.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butRetDepsActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panelRetirarDepLayout = new javax.swing.GroupLayout(panelRetirarDep);
        panelRetirarDep.setLayout(panelRetirarDepLayout);
        panelRetirarDepLayout.setHorizontalGroup(
            panelRetirarDepLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelRetirarDepLayout.createSequentialGroup()
                .addGap(52, 52, 52)
                .addGroup(panelRetirarDepLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelFuncDeps, javax.swing.GroupLayout.DEFAULT_SIZE, 285, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelRetirarDepLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(labelXicara1)
                        .addGap(49, 49, 49)))
                .addGap(31, 31, 31))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelRetirarDepLayout.createSequentialGroup()
                .addContainerGap(97, Short.MAX_VALUE)
                .addComponent(butRetDeps)
                .addGap(56, 56, 56))
        );
        panelRetirarDepLayout.setVerticalGroup(
            panelRetirarDepLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelRetirarDepLayout.createSequentialGroup()
                .addGap(101, 101, 101)
                .addComponent(labelXicara1)
                .addGap(18, 18, 18)
                .addComponent(labelFuncDeps)
                .addGap(154, 154, 154)
                .addComponent(butRetDeps)
                .addContainerGap(166, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout panelFuncLayout = new javax.swing.GroupLayout(panelFunc);
        panelFunc.setLayout(panelFuncLayout);
        panelFuncLayout.setHorizontalGroup(
            panelFuncLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelFuncLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(panelCarregarMaq, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                .addComponent(panelRetirarDep, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        panelFuncLayout.setVerticalGroup(
            panelFuncLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelFuncLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelFuncLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(panelRetirarDep, javax.swing.GroupLayout.DEFAULT_SIZE, 578, Short.MAX_VALUE)
                    .addComponent(panelCarregarMaq, javax.swing.GroupLayout.DEFAULT_SIZE, 578, Short.MAX_VALUE))
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(panelMainCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(panelFunc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(panelPub, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(panelMainCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(panelFunc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(panelPub, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void butConsultarSaldoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butConsultarSaldoActionPerformed
        double saldo = cba.consultaSaldo();
        if (saldo != 1.111) {
            labelSaldo.setText("Saldo disponível: " + saldo);
        }
    }//GEN-LAST:event_butConsultarSaldoActionPerformed

    private void butLoginOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butLoginOKActionPerformed
        String numCartao = textFieldNumCartao.getText();
        String pin = "";
        char[] tmp = passFieldPIN.getPassword();
        for (char c : tmp) {
            pin += c;
        }
        try {
            Integer.parseInt(pin);
            int res = cba.autentica(numCartao, pin);
            if (res == 1) {
                panelLogin.setVisible(false);
                panelFunc.setVisible(true);
                labelFuncSaldoMaquina.setText(cba.getTotalDinheiro() + "");
                labelFuncDeps.setText(cba.getTotalDepositos() + "");
            } else if (res == 2) {
                panelLogin.setVisible(false);
                panelPub.setVisible(true);
                new WaitForPub(this);
            } else {
                JOptionPane.showMessageDialog(null, "PIN incorrecto");
            }
        } catch (Exception ex) {
            ex.printStackTrace();
            JOptionPane.showMessageDialog(null, "Deve inserir apenas números");
        }
        passFieldPIN.setText("");
    }//GEN-LAST:event_butLoginOKActionPerformed

    /**
     * @return the labelPubImage
     */
    public javax.swing.JLabel getLabelPubImage() {
        return labelPubImage;
    }

    /**
     * @param labelPubImage the labelPubImage to set
     */
    public void setLabelPubImage(javax.swing.JLabel labelPubImage) {
        this.labelPubImage = labelPubImage;
    }

    /**
     * @return the labelPubText
     */
    public javax.swing.JLabel getLabelPubText() {
        return labelPubText;
    }

    /**
     * @param labelPubText the labelPubText to set
     */
    public void setLabelPubText(javax.swing.JLabel labelPubText) {
        this.labelPubText = labelPubText;
    }

    private static class WaitForPub implements Runnable {

        CbaUI pai;

        public WaitForPub(CbaUI pai) {
            this.pai = pai;
            new Thread(this).start();
        }

        public void run() {
            try {
                Thread.sleep(3000);
                pai.panelPub.setVisible(false);
                pai.panelMainCliente.setVisible(true);
            } catch (InterruptedException ex) {
                ex.printStackTrace();
            }
        }
    }

    private void butLevOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butLevOKActionPerformed
        try {
            double quantia = Double.parseDouble(textFieldLev.getText());
            int res = cba.levantamento(quantia);
            if (res == -1) {
                JOptionPane.showMessageDialog(null, "Ocorreu um erro ao processar o pedido");
            } else if (res == 9) {
                JOptionPane.showMessageDialog(null, "Máquina sem dinheiro suficiente");
            } else if (res == 0) {
                JOptionPane.showMessageDialog(null, "Não dispõe de saldo suficiente para processar a operação");
            } else if (res == 1) {
                JOptionPane.showMessageDialog(null, "Operação bem sucedida");
            }
            textFieldLev.setText("");
        } catch (NumberFormatException numberFormatException) {
            JOptionPane.showMessageDialog(null, "Deve inserir uma quantia válida");
            textFieldLev.setText("");
        }
    }//GEN-LAST:event_butLevOKActionPerformed

    private void butDepOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butDepOKActionPerformed
        try {
            double quantia = Double.parseDouble(textFieldDep.getText());
            int res = cba.deposito(quantia);
            if (res == -1) {
                JOptionPane.showMessageDialog(null, "Ocorreu um erro ao processar o pedido");
            } else if (res == 0) {
                JOptionPane.showMessageDialog(null, "Operação não permitida");
            } else {
                JOptionPane.showMessageDialog(null, "Operação bem sucedida");
            }
            textFieldDep.setText("");
        } catch (NumberFormatException numberFormatException) {
            JOptionPane.showMessageDialog(null, "Deve inserir uma quantia válida");
            textFieldDep.setText("");
        }
    }//GEN-LAST:event_butDepOKActionPerformed

    private void butTrfOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butTrfOKActionPerformed
        try {
            String idDest = textFieldContaDest.getText();
            if (idDest.length() != 0) {
                double quantia = Double.parseDouble(textFieldTrfQtia.getText());
                int res = cba.transferencia(idDest, quantia);
                if (res == -1) {
                    JOptionPane.showMessageDialog(null, "Ocorreu um erro ao processar o pedido");
                } else if (res == 2) {
                    JOptionPane.showMessageDialog(null, "A conta de destino não existe");
                } else if (res == 0) {
                    JOptionPane.showMessageDialog(null, "Operação não permitida");
                } else {
                    JOptionPane.showMessageDialog(null, "Operação bem sucedida");
                }
            } else {
                JOptionPane.showMessageDialog(null, "Deve inserir um número de conta válido");
            }
            textFieldContaDest.setText("");
            textFieldTrfQtia.setText("");
        } catch (NumberFormatException numberFormatException) {
            JOptionPane.showMessageDialog(null, "Deve inserir uma quantia válida");
            textFieldTrfQtia.setText("");
        }
    }//GEN-LAST:event_butTrfOKActionPerformed

    private void butPgmOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butPgmOKActionPerformed
        try {
            String ref = textFieldRefer.getText();
            if (ref.length() != 0) {
                double quantia = Double.parseDouble(textFieldPgmQtia.getText());
                int res = cba.pagamento(ref, quantia);
                if (res == -1) {
                    JOptionPane.showMessageDialog(null, "Ocorreu um erro ao processar o pedido");
                } else if (res == 0) {
                    JOptionPane.showMessageDialog(null, "Operação não permitida");
                } else {
                    JOptionPane.showMessageDialog(null, "Operação bem sucedida");
                }
            } else {
                JOptionPane.showMessageDialog(null, "Deve inserir um número de conta válido");
            }
            textFieldRefer.setText("");
            textFieldPgmQtia.setText("");
        } catch (NumberFormatException numberFormatException) {
            JOptionPane.showMessageDialog(null, "Deve inserir uma quantia válida");
            textFieldPgmQtia.setText("");
        }
    }//GEN-LAST:event_butPgmOKActionPerformed

    private void butCarregarMaqActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butCarregarMaqActionPerformed
        try {
            double valor = Double.parseDouble(textFieldFuncCarrMaq.getText());
            cba.carregaMaquina(valor);
            JOptionPane.showMessageDialog(null, "Carregamento efectuado");
        } catch (NumberFormatException numberFormatException) {
            JOptionPane.showMessageDialog(null, "Deve inserir uma quantia válida");
        }
        textFieldFuncCarrMaq.setText("");
        labelFuncSaldoMaquina.setText(cba.getTotalDinheiro() + "");
    }//GEN-LAST:event_butCarregarMaqActionPerformed

    private void butOKmudaPinActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butOKmudaPinActionPerformed
        char[] pin1 = passFieldMudPin1.getPassword();
        char[] pin2 = passFieldMudPin2.getPassword();
        String pin11 = "";
        String pin22 = "";
        for (char c : pin1) {
            pin11 += c;
        }
        for (char c : pin2) {
            pin22 += c;
        }
        try {
            Integer.parseInt(pin22);
            Integer.parseInt(pin11);
            if (pin11.equals(pin22)) {
                cba.mudaPIN(pin22);
                JOptionPane.showMessageDialog(null, "PIN alterado com sucesso");
            } else {
                JOptionPane.showMessageDialog(null, "Os dois PIN inseridos não coincidem");
            }
        } catch (NumberFormatException numberFormatException) {
            JOptionPane.showMessageDialog(null, "Deve inserir apenas números");
        }
        passFieldMudPin1.setText("");
        passFieldMudPin2.setText("");
    }//GEN-LAST:event_butOKmudaPinActionPerformed

    private void butRetDepsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butRetDepsActionPerformed
        cba.retiraDepositos();
        JOptionPane.showMessageDialog(null, "Operação bem sucedida");
        labelFuncDeps.setText(0 + "");
    }//GEN-LAST:event_butRetDepsActionPerformed
    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new CbaUI(new CBA()).setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton butCarregarMaq;
    private javax.swing.JButton butConsultarSaldo;
    private javax.swing.JButton butDepOK;
    private javax.swing.JButton butLevOK;
    private javax.swing.JButton butLoginOK;
    private javax.swing.JButton butOKmudaPin;
    private javax.swing.JButton butPgmOK;
    private javax.swing.JButton butRetDeps;
    private javax.swing.JButton butTrfOK;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel labelFuncDeps;
    private javax.swing.JLabel labelFuncSaldoMaquina;
    private javax.swing.JLabel labelPubImage;
    private javax.swing.JLabel labelPubText;
    private javax.swing.JLabel labelSaldo;
    private javax.swing.JLabel labelXicara;
    private javax.swing.JLabel labelXicara1;
    private javax.swing.JPanel panelCarregarMaq;
    private javax.swing.JPanel panelFunc;
    private javax.swing.JPanel panelLogin;
    private javax.swing.JPanel panelMainCliente;
    private javax.swing.JPanel panelPub;
    private javax.swing.JPanel panelRetirarDep;
    private javax.swing.JPasswordField passFieldMudPin1;
    private javax.swing.JPasswordField passFieldMudPin2;
    private javax.swing.JPasswordField passFieldPIN;
    private javax.swing.JPanel tabCliConsSaldo;
    private javax.swing.JPanel tabCliDep;
    private javax.swing.JPanel tabCliLev;
    private javax.swing.JPanel tabCliMudarPin;
    private javax.swing.JPanel tabCliPaga;
    private javax.swing.JPanel tabCliTrans;
    private javax.swing.JTabbedPane tabbedPaneClient;
    private javax.swing.JTextField textFieldContaDest;
    private javax.swing.JTextField textFieldDep;
    private javax.swing.JTextField textFieldFuncCarrMaq;
    private javax.swing.JTextField textFieldLev;
    private javax.swing.JTextField textFieldNumCartao;
    private javax.swing.JTextField textFieldPgmQtia;
    private javax.swing.JTextField textFieldRefer;
    private javax.swing.JTextField textFieldTrfQtia;
    // End of variables declaration//GEN-END:variables
}
